import service from "@/utils/request";

export const useLoginApi = (formData: {}) => {
  return service({
    url: "/v0/auth/login",
    method: "POST",
    data: formData,
  });
};

export const useLogoutApi = () => {
  return service({
    url: "/v0/auth/logout",
    method: "GET",
  });
};
